<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
  <head>
    <title></title>
    <link rel="stylesheet" type="text/css" href="${path}/css/editTable.css">
    
    <script type="text/javascript">
    	function check(){
    		var mobile = document.getElementById("mobile").value;
     		if("" == mobile){
     			alert("请输入手机号码");
     			return false;
     		}
    	}
    </script>
  </head>
  <body>
    <div>
    	<form id="editListWhiteForm" name="editListWhiteForm" method="post" action="${path }/listWhite/updateListWhite.action" onsubmit="return check();">
    		<p>填写白名单信息</p>
    		<c:choose>
    			<c:when test="${listWhiteVo.id == null}">
    				<input type="hidden" name="listWhiteVo.id" value="0" />
    			</c:when>
    			<c:otherwise>
    				<input type="hidden" name="listWhiteVo.id" value="${listWhiteVo.id }" />
    			</c:otherwise>
    		</c:choose>
    		<table>
    			<tr>
    				<td>手机号码</td>
    				<td>
    					<input type="text" id="mobile" name="listWhiteVo.mobile" value="${listWhiteVo.mobile }" />
    					<span style="color: red;size: 2px;">&nbsp;*必填项&nbsp;&nbsp;&nbsp;&nbsp;多个手机号请用英文":"隔开!</span>
    				</td>
    			</tr>
    			<tr>
    				<td>业务短号码</td>
    				<td>
    					<select id="sp_code" name="listWhiteVo.sp_code">
    						<option value="0">--全部--</option>
    						<c:if test="${configBusinessVoList != null && fn:length(configBusinessVoList) > 0 }">
    							<c:forEach items="${configBusinessVoList }" var="configBusinessVo" varStatus="i">
    								<option value="${configBusinessVo.sp_code }" <c:if test="${configBusinessVo.sp_code == listWhiteVo.sp_code }">selected="selected"</c:if>>${configBusinessVo.sp_code }</option>
    							</c:forEach>
    						</c:if>
    					</select>
    					<span style="color: red;size: 2px;">&nbsp;*必选项</span>
    				</td>
    			</tr>
    			<tr>
    				<td colspan="2">
    					<input type="submit" name="submit" value="确认" />
    				</td>
    			</tr>
    		</table>
    	</form>
    </div>
  </body>
</html>